package cn.iocoder.yudao.module.infra.framework.log.config;

import cn.iocoder.yudao.module.infra.framework.log.HttpTraceInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Description:
 * Author: li
 * Date: 2024/2/26
 */
@Configuration
public class HttpTraceWebConfiguration implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new HttpTraceInterceptor()).addPathPatterns("/**").order(2);
    }
}
